f312ecd142cb1c73e0cc08d7347db256673300f3,1.7.10/src/main/java/net/geforcemods/securitycraft/items/ItemCameraMonitor.java,ItemCameraMonitor,getCameraPositions,#NBTTagCompound#,243
Before Change
for(int i = 1; i <= 30; i++){
if(nbt != null && nbt.hasKey("Camera" + i)){
Scanner scanner = new Scanner(nbt.getString("Camera" + i));
scanner.useDelimiter(" ");
String[] coords = { scanner.next(), scanner.next(), scanner.next() };
scanner.close();
list.add(new int[] { Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]) });
}
}
After Change
for(int i = 1; i <= 30; i++){
if(nbt != null && nbt.hasKey("Camera" + i)){
String[] coords = nbt.getString("Camera" + i).split(" ");
list.add(new CameraView(Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), (coords.length == 4 ? Integer.parseInt(coords[3]) : 0)));
}
}